package org.smi.jsonDemo;


import com.alibaba.fastjson2.JSONObject;

public class RestClient {

    public static void main(String[] args) {
        String json = "{\n" +
                "    \"serial_id\": \"123456\",\n" +
                "    \"input\": {\n" +
                "        \"docId\": \"JDOFJ192390139\"\n" +
                "        \"file_name\": \"xxx.docx\",\n" +
                "        \"file_data\": \"base64(bytes)\"\n" +
                "    }\n" +
                "}";

        RestDTO re = JSONObject.parseObject(json, RestDTO.class);

        System.out.println(re);
    }
}
